﻿using System.Web;
using System.Web.Mvc;
using SimpleMVC.Filters;

namespace SimpleMVC
{
    public class FilterConfig
    {
        public static void RegisterGlobalFilters(GlobalFilterCollection filters)
        {
            filters.Add(new CustomExceptionHandlerAttribute());
            filters.Add(new ThemeFilter());
            filters.Add(new GlobalAuthenticationFilter());
            filters.Add(new GlobalAuthorizeFilter());
        }
    }
}
